package com.highcom.dao.impl;

import com.highcom.dao.BookDao;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component("bookDao2") //BookDaoImpl变成bean  id=bookDaoImpl变成bean

//@Primary
public class BookDaoImpl2 implements BookDao {


    @Override
    public void save() {
        System.out.println("book dao running... 2");
    }
}
